package com.ruoyi.internet.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.internet.service.impl.SendMsgUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: cjie
 * @description: 发送验证码
 * @date: 2021/8/17
 */
@Api(tags = "验证码")
@RestController
public class SendMsgController {
    @Autowired
    private SendMsgUtil sendMsgUtil;

    /**
     * 发送验证码
     */
    @ApiOperation(value = "发送验证码", notes = "发送验证码")
    @GetMapping("/checkCode")
    public AjaxResult sendMsg(String phone){
        return sendMsgUtil.sendMsg(phone);
    }
}
